package com.fc.mall.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@Data
public class UmsMemberAccountChangeHistory implements Serializable {
    /**
     * 主键
     *
     * @mbggenerated
     */
    private Long id;

    /**
     * 会员id
     *
     * @mbggenerated
     */
    private Long memberId;

    /**
     * 邀请时，用户的等级id
     *
     * @mbggenerated
     */
    private Long memberLevelId;

    /**
     * 佣金/提现奖励的金额来自会员id
     *
     * @mbggenerated
     */
    private Long fromMemberId;

    /**
     * 账户类型 1-> 会员账号 2-> 会员待发放金账户
     *
     * @mbggenerated
     */
    private Integer accountType;

    /**
     * 金额变更类型 1->购物佣金 2->提现奖励 3->购物消费(购物抵扣) 4->提现 5->手动增加 6->手动减少
     *
     * @mbggenerated
     */
    private Integer type;

    /**
     * 金额，单位分
     *
     * @mbggenerated
     */
    private Long amount;

    /**
     * 备注
     *
     * @mbggenerated
     */
    private String remark;

    /**
     * 创建时间
     *
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 分佣订单号
     */
    private String orderSn;


    private Integer rate;

    private Integer status;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", memberLevelId=").append(memberLevelId);
        sb.append(", fromMemberId=").append(fromMemberId);
        sb.append(", accountType=").append(accountType);
        sb.append(", type=").append(type);
        sb.append(", amount=").append(amount);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}